<!DOCTYPE html>

<html>
	<head>
		<link rel="stylesheet" href="../../../themes/themeroller/default-theme/ui.all.css" type="text/css" media="screen">

		<script src="../../../lib/jquery/jquery.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../../lib/jquery/jquery.scrollTo.js" type="text/javascript" charset="utf-8"></script>

		<script src="../../../src/defaults.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../../src/core.js" type="text/javascript" charset="utf-8"></script>
		
		<style type="text/css" media="screen">
			body {
				font-size: 14px;
				padding: 15px;
				font-family: "Trebuchet MS", "Helvetica", "Arial",  "Verdana", "sans-serif";
			}

			p {
				margin: 30px 10px;
			}

			#lightbox1 img {
				border: 1px solid #ccc;
			}
		</style>
		
	</head>

	<body>
				
		<h1>Nokia.Carousel - Sample</h1>

		<ul id="carousel1">
			<li><img src="images/carousel01.jpg"/></li>
			<li><img src="images/carousel02.jpg"/></li>
			<li><img src="images/carousel03.jpg"/></li>
			<li><img src="images/carousel04.jpg"/></li>
			<li><img src="images/carousel05.jpg"/></li>
			<li><img src="images/carousel01.jpg"/></li>
			<li><img src="images/carousel04.jpg"/></li>
			<li><img src="images/carousel05.jpg"/></li>
			<li><img src="images/carousel02.jpg"/></li>
			<li><img src="images/carousel03.jpg"/></li>
		</ul>

		<br />

		<ul id="carousel2">
			<li><img src="images/carousel01.jpg"/></li>
			<li><img src="images/carousel02.jpg"/></li>
			<li><img src="images/carousel03.jpg"/></li>
			<li><img src="images/carousel04.jpg"/></li>
			<li><img src="images/carousel05.jpg"/></li>
			<li><img src="images/carousel01.jpg"/></li>
			<li><img src="images/carousel04.jpg"/></li>
			<li><img src="images/carousel05.jpg"/></li>
			<li><img src="images/carousel02.jpg"/></li>
			<li><img src="images/carousel03.jpg"/></li>
		</ul>

		<br /><br />

		<ul id="carousel3">
			<li><img src="images/icon1.png"/></li>
			<li><img src="images/icon2.png"/></li>
			<li><img src="images/icon3.png"/></li>
			<li><img src="images/icon4.png"/></li>
			<li><img src="images/icon5.png"/></li>
			<li><img src="images/icon6.png"/></li>
			<li><img src="images/icon7.png"/></li>
			<li><img src="images/icon8.png"/></li>
			<li><img src="images/icon9.png"/></li>
			<li><img src="images/icon10.png"/></li>
		</ul>

		<script type="text/javascript" charset="utf-8">
		
			if (window.widget) {
				widget.setNavigationEnabled(false);
			}

			var init = function() {
			
				window.carousel1 = new Nokia.Carousel({
					element: '#carousel1',
					visibleItems: 4,
					width: 400,
					delay: 150,
					select: function() { alert('clicked'); }
				});

				window.carousel2 = new Nokia.Carousel({
					element: '#carousel2',
					visibleItems: 3,
					applyTransition: true,
					delay: 2000,
					itemDimensions: {
						width: 102,
						height: 102
					}
				});

				window.carousel3 = new Nokia.Carousel({
					element: '#carousel3',
					visibleItems: 6,
					itemDimensions: {
						width: 47,
						height: 47
					}
				});
				
				/*
				 * Hide splash when its all done.
				*/
				
				Nokia.hideSplash();

			};
			
			/*
			 * Show splash while loading components.
			*/
			
			Nokia.showSplash('<span>loading</span>');
			
			Nokia.use('carousel', init);

		</script>

	</body>
</html>
